public class SolutionInterview10_3 {
    public int search(int[] arr, int target) {
        for (int i=0;i<arr.length;i++){
            if (arr[i]==target){
                return i;
            }
        }
        return -1;
    }

    public static void main(String[] args) {
        System.out.println(new SolutionInterview10_3().search(new int[]{15, 16, 19, 20, 25, 1, 3, 4, 5, 7, 10, 14},5));
    }
}
